/**
 * @author		Ben Layet
 * @version 	1.0
 * @date		25 Sep 2008
 */
package org.ignoramus.application.store;

import java.io.FileInputStream;

import junit.framework.TestCase;

/**
 *  Test for XmlLessonFile class.
 */
public class XmlLessonFileTest extends TestCase
{
	/**
	 * Tests the parsing of a lesson file.
	 * @throws Exception if a problem occurs
	 */
	public void testParsing() throws Exception
	{
		XmlLessonParser file = new XmlLessonParser(new FileInputStream("junit/res/org/ignoramus/application/store/lesson.xml"));

		assertEquals("Jean's Nikkyu revision", file.getTitle());
		assertEquals("template.xml", file.getTemplateFilename());
		assertEquals("cards.xml", file.getCardsFilename());
		assertEquals("results_log.xml", file.getLogFilename());
	}
}
